<template>
  <div class="page">
      <button @click="open('default')">显示toast提示框(default)</button>
      <button @click="open('danger')">显示toast提示框(danger)</button>
      <button @click="open('warning')">显示toast提示框(warning)</button>
      <button @click="open('primary')">显示toast提示框(primary)</button>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  data() {
    return {

    }
  },
  methods: {
      open (type) {
          this.$rxToast('提示信息',type)
      }
  }
}
</script>

<style scoped lang="scss">
button{
  display: block;
  margin-bottom: 20px;
}
</style>
